package com.yoyo.yyadsdk.broad;

import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class DismissReceiver extends BroadcastReceiver {

    public static final String ACTION = "com.yoyo.yyadsdk.broad.DismissReceiver";
    Service mService;

    public DismissReceiver(Service service) {
        mService = service;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent != null && ACTION.equals(intent.getAction())) {
            mService.stopSelf();
        }
    }
}